home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20030409-20031118
/
000307_fdc@columbia.edu_Fri Sep 26 10:14:38 EDT 2003.msg
< prev
next >
Wrap
Text File
|
2003-11-18
|
1KB
|
39 lines
Article: 14551 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!news-not-for-mail
From: fdc@sesame.cc.columbia.edu (Frank da Cruz)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: How to use fopen
Date: 26 Sep 2003 10:14:18 -0400
Organization: Columbia University
Lines: 21
Message-ID: <bl1hjq$s8o$1@sesame.cc.columbia.edu>
References: <NFXcb.181$vB7.165756109@newssvr11.news.prodigy.com>
Reply-To: fdc@columbia.edu
NNTP-Posting-Host: sesame.cc.columbia.edu
X-Trace: newsmaster.cc.columbia.edu 1064585659 1871 128.59.59.56 (26 Sep 2003 14:14:19 GMT)
X-Complaints-To: postmaster@columbia.edu
NNTP-Posting-Date: 26 Sep 2003 14:14:19 GMT
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14551
In article <NFXcb.181$vB7.165756109@newssvr11.news.prodigy.com>,
Jun Zhang <nugulus@netscape.net> wrote:
: What I have in mind is to say,
: fopen /read \%c inputfile arrayname
: and then start to access the array elements by,
: fread ...
: How can I exactly do this?
: (I was told the manual is shipped, and take 1 to 2 weeks to deliver.)
:
You have to be more specific. Do you want each line of the file to
be assigned to an array element? Then:
fread /line \%c \&a[\%i]
or whatever. You don't have to wait for the manual to read about arrays
and file i/o. See:
http://www.columbia.edu/kermit/ckermit70.html#x7.10 (about arrays)
http://www.columbia.edu/kermit/ckermit70.html#x1.22 (about file i/o)
- Frank